
import pdb

from django.shortcuts import render_to_response
from django.contrib.auth.decorators import login_required

from psd.register.models import RegRecord

@login_required
def show_me(request):
    user = request.user
    reg = RegRecord.objects.filter(psdid=user.username)

    if reg:
        return render_to_response('show_me.html', {'reg': reg[0]})
    else:
        return render_to_response('user_not_found.html')
